<template>
  <div class="app-container">
      <mt-header fixed title="Vue-Object"></mt-header>



        <transition>
          <router-view></router-view>
        </transition>


      <div class="app-tabbar">
        <nav class="mui-bar mui-bar-tab">
        <router-link class="mui-tab-myitem " to = "/HEADER">
          <span class="mui-icon mui-icon-home"></span>
          <span class="mui-tab-label">首页</span>
        </router-link>
        <router-link class="mui-tab-myitem" to = "/UPLOAD">
          <span class="mui-icon mui-icon-contact"></span>
          <span class="mui-tab-label">提交</span>
        </router-link>
        <router-link class="mui-tab-myitem shoppingcar" to = "/SHOPCAR">
          <span class="mui-icon glyphicon glyphicon-shopping-cart">
            <span class="mui-badge">9</span>
          </span>
          <span class="mui-tab-label">购物车</span>
        </router-link>
        <router-link class="mui-tab-myitem" to = "/SEARCH">
          <span class="mui-icon mui-icon-gear"></span>
          <span class="mui-tab-label">搜索</span>
        </router-link>
      </nav>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang = "less" scoped>
.app-container{
  height: 100%;
  overflow-x: hidden;
  padding-top: 40px;
  padding-bottom: 50px;
}
.app-tabbar{
  .shoppingcar{
    .mui-icon{
      font-family: Glyphicons Halflings;
      font-size: 20px;
      top:6px
    }
  }
  .mui-bar-tab .mui-tab-myitem {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
  }
  .mui-bar-tab .mui-tab-myitem .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .mui-bar-tab .mui-tab-myitem .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mui-bar-tab .mui-tab-myitem.mui-active {
    color: #007aff;
  }
}
.v-enter{
  transform: translateX(100%);
  opacity: 0;
}
.v-leave-to{
  transform: translateX(-100%);
  position: absolute;
  opacity: 0;
}
.v-enter-active,
.v-leave-active{
  transition: all 0.5s ease;
}
</style>